package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BilliardsGameEightBallMemberMapper;
import com.ruoyi.system.domain.BilliardsGameEightBallMember;
import com.ruoyi.system.service.IBilliardsGameEightBallMemberService;

/**
 * 中式八球比赛用户Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-11
 */
@Service
public class BilliardsGameEightBallMemberServiceImpl implements IBilliardsGameEightBallMemberService 
{
    @Autowired
    private BilliardsGameEightBallMemberMapper billiardsGameEightBallMemberMapper;

    /**
     * 查询中式八球比赛用户
     * 
     * @param id 中式八球比赛用户主键
     * @return 中式八球比赛用户
     */
    @Override
    public BilliardsGameEightBallMember selectBilliardsGameEightBallMemberById(Long id)
    {
        return billiardsGameEightBallMemberMapper.selectBilliardsGameEightBallMemberById(id);
    }

    /**
     * 查询中式八球比赛用户列表
     * 
     * @param billiardsGameEightBallMember 中式八球比赛用户
     * @return 中式八球比赛用户
     */
    @Override
    public List<BilliardsGameEightBallMember> selectBilliardsGameEightBallMemberList(BilliardsGameEightBallMember billiardsGameEightBallMember)
    {
        return billiardsGameEightBallMemberMapper.selectBilliardsGameEightBallMemberList(billiardsGameEightBallMember);
    }

    /**
     * 新增中式八球比赛用户
     * 
     * @param billiardsGameEightBallMember 中式八球比赛用户
     * @return 结果
     */
    @Override
    public int insertBilliardsGameEightBallMember(BilliardsGameEightBallMember billiardsGameEightBallMember)
    {
        billiardsGameEightBallMember.setCreateTime(DateUtils.getNowDate());
        return billiardsGameEightBallMemberMapper.insertBilliardsGameEightBallMember(billiardsGameEightBallMember);
    }

    /**
     * 修改中式八球比赛用户
     * 
     * @param billiardsGameEightBallMember 中式八球比赛用户
     * @return 结果
     */
    @Override
    public int updateBilliardsGameEightBallMember(BilliardsGameEightBallMember billiardsGameEightBallMember)
    {
        billiardsGameEightBallMember.setUpdateTime(DateUtils.getNowDate());
        return billiardsGameEightBallMemberMapper.updateBilliardsGameEightBallMember(billiardsGameEightBallMember);
    }

    /**
     * 批量删除中式八球比赛用户
     * 
     * @param ids 需要删除的中式八球比赛用户主键
     * @return 结果
     */
    @Override
    public int deleteBilliardsGameEightBallMemberByIds(Long[] ids)
    {
        return billiardsGameEightBallMemberMapper.deleteBilliardsGameEightBallMemberByIds(ids);
    }

    /**
     * 删除中式八球比赛用户信息
     * 
     * @param id 中式八球比赛用户主键
     * @return 结果
     */
    @Override
    public int deleteBilliardsGameEightBallMemberById(Long id)
    {
        return billiardsGameEightBallMemberMapper.deleteBilliardsGameEightBallMemberById(id);
    }
}
